package processScheduling;

/**
 * @author AnonyEast
 */
public class PCB {
    private String name;//进程名
    private String state;//状态
    private int priority;//优先级
    private int ntime;//需要运行时间
    private int rtime;//已运行时间

    @Override
    public String toString() {
        return "PCB{" +
                "name='" + name + '\'' +
                ", state='" + state + '\'' +
                ", priority=" + priority +
                ", ntime=" + ntime +
                ", rtime=" + rtime +
                '}';
    }

    public PCB() {
    }

    public PCB(String name, String state, int priority, int ntime, int rtime) {
        this.name = name;//进程名
        this.state = state;//进程状态
        this.priority = priority;//优先级
        this.ntime = ntime;//需要运行时间
        this.rtime = rtime;//已用CPU时间
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public int getPriority() {
        return priority;
    }

    public void setPriority(int priority) {
        this.priority = priority;
    }

    public int getNtime() {
        return ntime;
    }

    public void setNtime(int ntime) {
        this.ntime = ntime;
    }

    public int getRtime() {
        return rtime;
    }

    public void setRtime(int rtime) {
        this.rtime = rtime;
    }
}